package xyh.ContributionSystem.Projects;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

//生成构造函数
@Builder
@Data
public class Project {
    private int p_id;
    private String p_name;
    private int teacher_id;
    private String p_type;
    private String p_time;
    private String p_task;
    private double p_outlay;

    //遇到了无参构造报错问题，查询网络资料后添加
    @Tolerate
    public Project() {}

    public Project(int p_id, String p_name, int teacher_id, String p_type, String p_time, String p_task, double p_outlay) {
        this.p_id = p_id;
        this.p_name = p_name;
        this.teacher_id = teacher_id;
        this.p_type = p_type;
        this.p_time = p_time;
        this.p_task = p_task;
        this.p_outlay = p_outlay;
    }

    @Override
    public String toString() {
        return "Project{" +
                "p_id=" + p_id +
                ", p_name='" + p_name + '\'' +
                ", teacher_id=" + teacher_id +
                ", p_type='" + p_type + '\'' +
                ", p_time='" + p_time + '\'' +
                ", p_task='" + p_task + '\'' +
                ", p_outlay=" + p_outlay +
                '}';
    }
}
/*
项目
 */